package com.esd.db.service;

import java.util.List;

import com.esd.db.model.voiceNote;
import com.esd.db.model.voiceNoteWithBLOBs;

public interface VoiceNoteService {
	int deleteByPrimaryKey(Integer id);

    int insert(voiceNote record);

    int insertSelective(voiceNote record);

    voiceNoteWithBLOBs selectByPrimaryKey(Integer id);
    
    List<voiceNote> getAll(String condition,int page,int row);
    
    int getAllCount(String condition);

    int updateByPrimaryKeySelective(voiceNote record);

    int updateByPrimaryKeyWithBLOBs(voiceNote record);

    int updateByPrimaryKey(voiceNote record);

	List<voiceNote> getAllOrderByUpdateTimeDesc(String condition,int page,int row);
	
	/**
	 * 发布提醒  更新user表中的标注规则通知标识字段 为开启 1
	 * @return
	 */
	int noticeSend();
	
	/**
	 * 不在显示提醒信息 根据userid更新标注规则通知标识字段 为关闭 0
	 * @param userid
	 * @return
	 */
	int neverReceiveByUserId(int userId);
}
